<?php
/* @var $this AlarmSystemController */
/* @var $model AlarmSystem */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'alarm-system-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'fire_alarm_provided'); ?>
		<?php echo $form->textField($model,'fire_alarm_provided'); ?>
		<?php echo $form->error($model,'fire_alarm_provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'type'); ?>
		<?php echo $form->dropDownlist($model, 'type',$model->getType() ,
		array('prompt' => 'Select a Type',)); ?>
		<?php echo $form->error($model,'type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'centralized'); ?>
		<?php echo $form->textField($model,'centralized'); ?>
		<?php echo $form->error($model,'centralized'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'location_of_central_control'); ?>
		<?php echo $form->textArea($model,'location_of_central_control',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'location_of_central_control'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'no_of_bell_per_floor'); ?>
		<?php echo $form->textField($model,'no_of_bell_per_floor'); ?>
		<?php echo $form->error($model,'no_of_bell_per_floor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'bell_location'); ?>
		<?php echo $form->textArea($model,'bell_location',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'bell_location'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'coverage'); ?>
		<?php echo $form->dropDownlist($model, 'coverage',$model->getCoverage() ,
		array('prompt' => 'Select a Coverage',)); ?>
		<?php echo $form->error($model,'coverage'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'portion_specify'); ?>
		<?php echo $form->textArea($model,'portion_specify',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'portion_specify'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'monitored'); ?>
		<?php echo $form->textField($model,'monitored'); ?>
		<?php echo $form->error($model,'monitored'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'type_of_intiation_device'); ?>
		<?php echo $form->checkBoxList($model, 'type_of_intiation_device', array('Smoke'=>'Smoke','Heat'=>'Heat','Manual'=>'Manual','Waterflow'=>'Waterflow')); ?>
		
		<?php echo $form->error($model,'type_of_intiation_device'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'toid_other'); ?>
		<?php echo $form->textArea($model,'toid_other',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'toid_other'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'no_of_pull_station_per_floor'); ?>
		<?php echo $form->textField($model,'no_of_pull_station_per_floor'); ?>
		<?php echo $form->error($model,'no_of_pull_station_per_floor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'smoke_detector'); ?>
		<?php echo $form->textField($model,'smoke_detector'); ?>
		<?php echo $form->error($model,'smoke_detector'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'sd_no_of_unit_per_floor'); ?>
		<?php echo $form->textField($model,'sd_no_of_unit_per_floor'); ?>
		<?php echo $form->error($model,'sd_no_of_unit_per_floor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'sd_integrated'); ?>
		<?php echo $form->textField($model,'sd_integrated'); ?>
		<?php echo $form->error($model,'sd_integrated'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'heat_detector'); ?>
		<?php echo $form->textField($model,'heat_detector'); ?>
		<?php echo $form->error($model,'heat_detector'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'hd_no_of_unit_per_room'); ?>
		<?php echo $form->textField($model,'hd_no_of_unit_per_room'); ?>
		<?php echo $form->error($model,'hd_no_of_unit_per_room'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'hd_integrated'); ?>
		<?php echo $form->textField($model,'hd_integrated'); ?>
		<?php echo $form->error($model,'hd_integrated'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'power_source_of_detector'); ?>
		<?php echo $form->dropDownlist($model, 'power_source_of_detector',$model->getPower_source_of_detector() ,
		array('prompt' => 'Select a Power Source of Detector',)); ?>
		<?php echo $form->error($model,'power_source_of_detector'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'psod_other'); ?>
		<?php echo $form->textArea($model,'psod_other',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'psod_other'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'total_detector_per_floor'); ?>
		<?php echo $form->textField($model,'total_detector_per_floor'); ?>
		<?php echo $form->error($model,'total_detector_per_floor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'date_last_tested'); ?>
		<?php echo $form->textField($model,'date_last_tested'); ?>
		<?php echo $form->error($model,'date_last_tested'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'inspection_id'); ?>
		<?php echo $form->textField($model,'inspection_id'); ?>
		<?php echo $form->error($model,'inspection_id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->